<?php
/**
 * Single.php 
 *
 * @package WordPress
 * @subpackage WP_Framework
 */

get_header();
?>
			<!--BEGIN #primary-->
			<div id="primary" class="hfeed">   	
				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	
				<!--BEGIN .hentry-->
				<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
					<h1 class="entry-title"><?php the_title(); ?></h1> 
					
					<p class="entry-meta">
						<span class="author vcard">Written by <?php printf( '<a class="url fn" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></span>
						<span class="published-time">on <abbr class="published" title="<?php the_time('c'); ?>"><?php the_time( 'F jS, Y' ); ?></abbr></span>
						<span class="meta-sep">&mdash;</span>
						<span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( 'Leave a Comment', '1 Comment', '% Comments' ); ?></a></span>
						<?php edit_post_link( 'Edit', '<span class="edit-post">[', ']</span>' ); ?>
					</p>
					
					<!--BEGIN .entry-content-->
					<div class="entry-content">
						<?php the_content(); ?>
						<?php wp_link_pages( array( 'before' => '<div id="page-links"><p><strong>Pages:</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
					<!--END .entry-content-->
					</div>
							   
					<!-- Auto Discovery Trackbacks
					<?php trackback_rdf(); ?>
					-->
				<!--END .hentry-->
				</div>
				
				<?php include ( TEMPLATEPATH . '/navigation.php' ); ?>	
				<?php comments_template(); ?>
				<?php endwhile; else : ?>
				
				<!--BEGIN #post-0-->
				<div id="post-0" class="hentry error404">
					<h1 class="entry-title">Not Found</h1>
					
					<!--BEGIN .entry-content-->
					<div class="entry-content">
						<p>Sorry, no posts matched your criteria.</p>
						<?php get_search_form(); ?>
					<!--END .entry-content-->
					</div>
				<!--END #post-0-->
				</div>
				
				<?php endif; ?>
			<!--END #primary-->
			</div>
        
<?php get_sidebar(); ?>

<?php get_footer(); ?>